<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<?php
//no direct access
defined('_JEXEC') or die( 'Restricted access' );
//import the JController Class
jimport( 'joomla.application.component.view' );


class NvViewSearch extends JView {
	
	/* fungsi display default
	 * @void
	 */
    function display(){
    	
    	
    	if(($_POST[searchObj])){
    		   		
    	//get request	
    	$keyword = JRequest::getVar('searchObj', 0, 'POST');	
    	
    	    	 
    	//get flickr model object
    	$model = $this->getModel('search');
    	
    	//get search result 
    	$dataArr = $model->searchObject($keyword);
    	//assign variable
    	$this->assignRef('data',$dataArr);
    	}
    	
    	parent::display();
    }
}
?>
